<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div class="box1">
        <div class="box2"></div>
    </div>
    <script type="text/javascript">
        var a1 = document.createElement("li")
        var b1 = document.createElement("adbc");
        var box1 = document.getElementsByClassName("box1")[0];
        box1.appendChild(a1);
        box1.insertBefore(b1, a1);
    </script>
</body>

</html>